package com.bill.learn.mapper;

import com.bill.learn.entity.Department;

import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author Bill Ludwig; 2020/5/16 21:48
 */
@Mapper
@Repository
public interface DepartmentMapper {

    int addDepartment(Department department);

    List<Department> getDepartments();

    Department getDepartmentById(int id);

    int deleteDepartment(int id);

    int updateDepartment(Department department);
}
